package com.project.service;

import com.project.entity.po.Flow;
import com.project.result.ResponseResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlowService {
    /**
     * 查询所有流水
     * @return
     */
    ResponseResult<List<Flow>> selectAllFlow();

    /**
     * 根据菜名进行模糊查询
     * @param name
     * @return
     */
    ResponseResult<List<Flow>> selectFlowByName(String name);

    /**
     * 根据ID删除流水信息
     *
     * @return
     */
    ResponseResult<Integer> updateFlowById(Long id);

    /**
     * 根据id查询流水信息
     *
     * @param id
     * @return
     */
    ResponseResult<Flow> selectFlowById(Long id);

    /**
     * 添加流水信息
     *
     * @param flow
     * @return
     */
    ResponseResult<Integer> insertFlow(Flow flow);

    /**
     * 修改流水信息
     *
     * @param flow
     * @return
     */
    ResponseResult<Integer> updateFlow(Flow flow);
}
